/**
 * Main.java
 * Run application.
 */
package com.pluginsacceptor.acceptor;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import com.pluginsacceptor.acceptor.ui.RootPlaginWindow;

/**
 * Main class
 */
public class Main {
    /** Logger*/
    private static final Logger LOG = Logger.getLogger(Main.class);
    /** Path to log properties */
    private static final String LOG_PROPERTIES_FILE = "log4j.properties";
    /**
     * Method responsible to starting of the main program window
     * and output messages about the begin and end of the method work.
     * we use PropertyConfigurator.configure(LOG_PROPERTIES_FILE) to initialize our log4j file
     */
    public static void main(final String[] args) {
        PropertyConfigurator.configure(LOG_PROPERTIES_FILE);
        LOG.info("------------------ Start -------------------");
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new RootPlaginWindow().create();
            }
        });
        LOG.info("------------------  End  -------------------");
    }
}